<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnCurrentScheduleInPlaylistVersionTable extends AbstractMigration
{
    public function up()
    {
        $this->table('playlist_version')
            ->addColumn('current_schedule_code', 'string', ['null' => false, 'default' => '', 'limit' => 20, 'comment' => '当前进度角色'])
            ->save();
    }

    public function down()
    {
        $this->table('playlist_version')
            ->removeColumn('current_schedule_code')
            ->save();
    }
}
